angular.module('myControllers', []).controller('GuideCtrl', function($scope, $state, $localstorage) {
	// 判断用户是否是第一次使用
	$scope.field = "_usetime";
	var checkUser = function() {
		var isFirst = $localstorage.get($scope.field );
		if (isFirst) {
			$state.go("index");
		}
	}
	$scope.go = function() {
		$state.go("index");
		$localstorage.set($scope.field , new Date());
	}
	checkUser();
}).controller('IndexCtrl', function($scope, $window) {

})